package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbImportLog;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbImportLog is a Querydsl query type for ETbImportLog
 */
@Label("TbImportLog查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbImportLog extends RelationalPathBase<ETbImportLog> {

    private static final long serialVersionUID = 1754465864;

    public static final QTbImportLog tbImportLog = new QTbImportLog("tb_import_log");

    public class PrimaryKeys {

        public final PrimaryKey<ETbImportLog> primary = createPrimaryKey(id);

    }

    public final StringPath bussinessCode = createString("bussinessCode");

    public final StringPath error = createString("error");

    public final StringPath fileName = createString("fileName");

    public final StringPath id = createString("id");

    public final StringPath importResult = createString("importResult");

    public final StringPath importTime = createString("importTime");

    public final StringPath location = createString("location");

    public final PrimaryKeys pk = new PrimaryKeys();

    public QTbImportLog(String variable) {
        super(ETbImportLog.class, forVariable(variable), "null", "tb_import_log");
        addMetadata();
    }

    public QTbImportLog(String variable, String schema, String table) {
        super(ETbImportLog.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbImportLog(Path<? extends ETbImportLog> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_import_log");
        addMetadata();
    }

    public QTbImportLog(PathMetadata<?> metadata) {
        super(ETbImportLog.class, metadata, "null", "tb_import_log");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(bussinessCode, ColumnMetadata.named("bussinessCode").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(error, ColumnMetadata.named("error").withIndex(5).ofType(Types.VARCHAR).withSize(500));
        addMetadata(fileName, ColumnMetadata.named("file_name").withIndex(2).ofType(Types.VARCHAR).withSize(50));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(importResult, ColumnMetadata.named("import_result").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(importTime, ColumnMetadata.named("import_time").withIndex(3).ofType(Types.VARCHAR).withSize(50));
        addMetadata(location, ColumnMetadata.named("location").withIndex(6).ofType(Types.VARCHAR).withSize(45));
    }

}

